﻿<%@ Page Language="C#" AutoEventWireup="true" masterpagefile="~/Root.master" CodeFile="sqlCredentialsLogin.aspx.cs" Inherits="sqlCredentialsLogin" %>
<asp:Content ContentPlaceHolderID="rootContent" runat="server" ID="contentLogin">
<div class="content">
        <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
            <tr>
                <td bgcolor="white" width="100%" style="padding-left:207px;vertical-align:top;">
                    <div style="padding-top:35px;padding-bottom:35px;">
					    <asp:Label id="lblLogoutInfo" runat="server" Visible="False" CssClass="header2" meta:resourcekey="lblLogoutInfoResource1">You are now logged out.</asp:Label>
					    <asp:Label id="lblLoginInfo" runat="server" CssClass="header2" meta:resourcekey="lblLoginInfoResource1" >Welcome to the SQL Server Web Tools</asp:Label>
				    </div>
   				    <asp:Label id="lblError" runat="server" Visible="False" ForeColor="Red" meta:resourcekey="lblErrorResource1"></asp:Label>                
                    <fieldset style="width:280px;padding-left:22px;padding-right:22px;padding-bottom:22px;">
                        <legend>Login</legend>
                        <div style="padding-bottom:22px;">Please enter your credentials:</div>
                       <div class="inputLabel">
                            <label for="ddlAuthType">Authentication:</label>
                        </div>
                        <div class="input">
                            <asp:DropDownList id="ddlAuthType" runat="server" Width="100%" OnSelectedIndexChanged="ddlAuthType_SelectedIndexChanged" AutoPostBack="True" meta:resourcekey="ddlAuthTypeResource1">
							    <asp:ListItem Value="0" Selected="True" meta:resourcekey="ListItemResource1">Windows Authentication</asp:ListItem>
							    <asp:ListItem Value="1" meta:resourcekey="ListItemResource2">SQL Server Authentication</asp:ListItem>
							    <asp:ListItem Value="2">Connection String</asp:ListItem>
						    </asp:DropDownList>                            
                        </div>
                        <div class="inputLabel">
                            <label for="txtServer">Server Instance:</label>
                        </div>
                        <div class="input">
                            <asp:textbox id="txtServer" runat="server" Columns="20" MaxLength="128" Width="100%" meta:resourcekey="txtServerResource1"></asp:textbox>
                            <asp:requiredfieldvalidator id="rfvServer" runat="server" ErrorMessage=" Must specify a server instance" ControlToValidate="txtServer" Display="Dynamic" meta:resourcekey="rfvServerResource1"></asp:requiredfieldvalidator>
                        </div>
                        
                        <div class="inputLabel">
                            <label for="txtUsername">Username:</label>
                        </div>
                        <div class="input">
                            <asp:textbox id="txtUsername" runat="server" Columns="20" MaxLength="36" Enabled="False" Width="100%" meta:resourcekey="txtUsernameResource1"></asp:textbox>
                            <asp:requiredfieldvalidator id="rfvUsername" runat="server" ErrorMessage=" Must specify a Username" ControlToValidate="txtUsername" Display="Dynamic" meta:resourcekey="rfvUsernameResource1"></asp:requiredfieldvalidator>
                        </div>
                        <div class="inputLabel">
                            <label for="txtPassword">Password:</label>
                        </div>
                        <div class="input">
                            <asp:textbox id="txtPassword" runat="server" Columns="20" TextMode="Password" MaxLength="36" Enabled="False" Width="100%" meta:resourcekey="txtPasswordResource1"></asp:textbox>
                        </div>
                         <div class="inputLabel">
                            <label for="txtPassword">Connection String:</label>
                        </div>
                        <div class="input">
                            <asp:TextBox ID="txtConnectionString" runat=server columns="33" Enabled="False" TextMode=MultiLine Rows="3"></asp:TextBox>
                        </div>
                        <div class="input">
                            <asp:Button id="btnLogin" OnClick="btnLogin_Click" CSSClass="button" onMouseOver="this.style.color='#cc0033';" onMouseOut="this.style.color='#000000';" runat="server" Text="Login" meta:resourcekey="btnLoginResource1"></asp:Button>
                        </div>
                    </fieldset>
				    <br />
				    <br />
				    <br />
				    <br />
			    </td>
                <td bgcolor="#f1f1f1" >
                    <img src="images/spacer.gif" width="207" />
                </td>
            </tr>
        </table>
</div>
</asp:Content>
